/*
 * @Author: 王灿
 * @Date: 2019-10-27 15:07:02
 * @Description: file content
 */
import Vue from 'vue'
import 'normalize.css/normalize.css'
import './plugins'
import App from './App.vue'
import router from './router'
import store from './store'
// import './icons'
import './utils/permission'
// import './utils/solution'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './utils/vue_bind'
import './components/index'
import '@/assets/styles/common.scss'
import { HappyScroll } from 'vue-happy-scroll'
import 'vue-happy-scroll/docs/happy-scroll.css'
import VuePageStack from 'vue-page-stack'

Vue.use(ElementUI)
Vue.component('happy-scroll', HappyScroll)
    // vue-router is necessary
Vue.use(VuePageStack, { router })

// 路由钩子
router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title || '嘉鹊管理'
    }
    next()
})

Vue.config.productionTip = false

new Vue({
    store,
    router,
    render: h => h(App)
}).$mount('#app')